#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "user_ws2812.h"
#include "user_wifi.h"
#include "user_sntp.h"
#include "user_aht20.h"

void app_main(void)
{
    xTaskCreate(user_ws2812_task, "user_ws2812_task", 4096, NULL, 1, NULL);
    xTaskCreate(user_aht20_task, "user_aht20_task", 4096, NULL, 1, NULL);
    xTaskCreate(user_wifi_task, "user_wifi_task", 4096, NULL, 1, NULL);
    while (wifi_flag == 0)
    {
        vTaskDelay(100);
    }
    xTaskCreate(user_sntp_task, "user_sntp_task", 4096, NULL, 1, NULL);
}
